package com.mochat.mochat.dao.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("mc_user_order")
public class UserOrderEntity {

  @TableId(type = IdType.AUTO)
  private Integer id;
  private String orderDesc;
  private String outTradeNo;
  private String externalUserid;
  private String openid;
  private Integer channelCodeId;
  private BigDecimal totalFee;
  private String status;
  private Integer tenantId;

  @TableField(fill = FieldFill.INSERT)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createdAt;
  @TableField(fill = FieldFill.UPDATE)
  private Date updatedAt;
  @TableLogic
  private Date deletedAt;

}
